<?php

use Illuminate\Database\Schema\Blueprint;

class CreateSystemSuggestions extends \App\Utils\CreateMigration
{
    function columns(Blueprint $table)
    {
        $table->unsignedTinyInteger('status')->default(1)->comment('状态');
        $table->unsignedTinyInteger('type')->default(1)->comment('类型');
        $table->unsignedBigInteger('user_id')->default(0)->comment('用户ID');
        $table->string('contact')->nullable()->comment('联系方式');
        $table->text('content')->nullable()->comment('内容');
    }

    function tableInfo()
    {
        return ['system__suggestions', '系统管理-意见建议'];
    }
}
